<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2016/12/21
 * Time: 9:31
 */

namespace SDXApi\Model;


use Think\Model;

/**
 * Class HomeTemplateStencilModel
 * @package SDXApi\Model
 */
class HomeTemplateStencilModel extends Model
{

    /**
     * @var string
     */
    protected $tableName = 'home_template_stencil';


    /**
     * Created by Jerry
     * @param $template_id
     * @return mixed
     */
    public function find_template_stencil_by_template_id($template_id)
    {
        $where = array(
            'template_id'	=>	$template_id,
        );

        return $this->where($where)->order('sort desc')->select();
    }
}